package boot

import (
    "github.com/gogf/gf/frame/g"
    "github.com/gogf/gf/os/gsession"
    "time"
)

func init() {
    g.Server().SetConfigWithMap(g.Map{
        //"SessionIdName": "gf-session",
        "CookieMaxAge":  time.Hour * 24,
        //"SessionMaxAge": time.Minute * 60,
        //"SessionPath" : "/tmp/gf_session_storage",
        "SessionStorage": gsession.NewStorageRedis(g.Redis()),

    })
    g.Server().SetPort(8199)
}

